package cn.com.pc.magazine.cms.control;

 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class CustomerController{
 
	@RequestMapping("/customer/add")
	public String add(HttpServletRequest request,
		HttpServletResponse response,ModelMap modelMap) throws Exception {
		response.getWriter().write("test");
//		return new ModelAndView("CustomerPage", "msg","add() method");
		return null;
	}
 
	@RequestMapping("/customer/delete")
	public ModelAndView delete(HttpServletRequest request,
		HttpServletResponse response) throws Exception {
 
		return new ModelAndView("CustomerPage", "msg","delete() method");
	}
 
	@RequestMapping("/customer/update")
	public ModelAndView update(HttpServletRequest request,
		HttpServletResponse response) throws Exception {
 
		return new ModelAndView("CustomerPage", "msg","update() method");
 
	}
 
	@RequestMapping("/customer/list")
	public ModelAndView list(HttpServletRequest request,
		HttpServletResponse response) throws Exception {
 
		return new ModelAndView("CustomerPage", "msg","list() method");
 
	}
 
}